package com.tre.jdevtemplateboot.common.enums;

public enum ExceptionHandlerEnums {
    PARAM_VALIDATE_ERROR(400, 40001, "请求参数校验错误"),
    REQUEST_LIMITER_ERROR(400, 40002, "请求过于频繁"),
    INVALID_TOKEN_ERROR(401, 40101, "用户登录凭证已失效，请重新登录"),
    UNAUTHORIZED_ERROR(401, 40102, "请求未授权"),
    UNAUTHENTICATED_ERROR(401, 40103, "用户未登录，请先登录"),
    INVALID_USER_ERROR(401, 40104, "无效用户或未经授权访问"),
    REQUEST_TOKEN_CATEGORY_ERROR(401, 40105, "请确认请求认证类别信息"),
    UNAUTHORIZED_FILE_ERROR(401, 40106, "请求文件未授权"),
    SERVER_INTERNAL_ERROR(500, 50001, "服务器端内部服务错误全局异常处理");

    private int status;
    private int code;
    private String msg;

    ExceptionHandlerEnums(int status, int code, String msg) {
        this.status = status;
        this.code = code;
        this.msg = msg;
    }

    public int getStatus() {
        return status;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
